function barExtenColor(colormap, hP, hB)
 for k = 1:size(colormap,1)
       hP(k).FaceColor = 'flat';
    hP(k).CData = colormap(k,:);
       hB(k).FaceColor = 'flat';
    hB(k).CData = colormap(k,:);
 end
end